package com.aaa.zuul.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/13 15:50
 * @ClassName : UserService
 * @Description :
 * @Package_Name : com.aaa.zuul.service
 */
@FeignClient("ssoService")
public interface UserService {

    /**
     * 调用远程token方法
     *
     * @param accessToken
     * @return boolean
     */
    @GetMapping("/ssoTokenController/checkToken")
    boolean checkToken(@RequestParam("accessToken") String accessToken);
}
